<template>
  <div><page-list :x-uri="uri" :x-tabs="tabs" :doactions="doactions" :checkbox-item="false" /></div>
</template>

<script>
import PageList from '@public/template/page_list.vue';
export default {
  components: {
    PageList
  },
  inject: ['reload'],
  data() {
    return {
      uri: '/admin/system/notify/node/list',
      tabs: [
        {
          title: '通知场景',
          uri: '/system/notify/node/list',
          meta: {
            permission: 'system.notify.node'
          }
        }
      ],
      doactions: [
        {
          title: '配置',
          meta: { permission: 'system.notify.node.config' },
          callback: this.config
        }
      ]
    };
  },
  methods: {
    config: function({ row }) {
      this.$router.push({ path: '/system/notify/node/' + row.id + '/config' });
    }
  }
};
</script>
